﻿using System;
using Microsoft.SharePoint;

namespace Xodeuz.SP.Common
{
    public class Field: Attribute
    {
        public string InternalName { get; set; }
        public string DisplayName { get; set; }
        public SPFieldType FieldType { get; set; }

        public Field(String internalName, String displayName, SPFieldType type)
            : base()
        {
            this.InternalName = internalName;
            this.DisplayName = displayName;
            this.FieldType = type;
        }

        public Field(String internalName, SPFieldType type)
            : base()
        {
            this.InternalName = internalName;
            this.FieldType = type;
        }
    }
}
